//
//  CollectionViewCell.m
//  Tang
//
//  Created by 352324497@qq.com on 15/12/3.
//  Copyright © 2015年 邓芮. All rights reserved.
//

#import "CollectionViewCell.h"

@implementation CollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.photoImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 100 * Kx6, 100 * Kx6)];
        self.photoImageView.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_photoImageView];
    }
    return self;
}

-(void)setModel:(CollectionModel *)model
{
    _model = model;
    [self.photoImageView sd_setImageWithURL:[NSURL URLWithString:model.pic1] placeholderImage:[UIImage imageNamed:@"PC"]];
}
@end
